<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数字类型</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
            {{score}}
            <span v-if="score<60">不及格</span>
            <span v-else-if="score<70">及格</span>
            <span v-else-if="score<80">良好</span>
            <span v-else>优秀</span>       
    </div>
</body>
<script>
    new  Vue({
        el:"#app",
        data:{
            score:Math.round(Math.random()*100),//随机产生了一个0到100的数
        },
        methods:{

        },
        watch:{
           
        }
    })
</script>
</html>